<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Pragma" CONTENT="no-cache">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="renderer" content="webkit">

		<%include("/common/include.html"){}%>
	</head>

	<body class="easyui-layout">
			<table id="cusProTable" class="easyui-datagrid" style="height:100%;">
		
			</table>
		<script type="text/javascript">
			$(document).ready(function () {
				//加载数据表格
				loadTable();
			});
			
			function  loadTable()
			{	
				$('#cusProTable').datagrid({
					cls: "theme-datagrid",
					singleSelect: true,
					<%if(!isEmpty(customerIds)){%>
					url: "${cxt!}/bentryRegister/getCusPro",
					queryParams: {
						'customerIds': '${customerIds! }'
					},
				    method: 'post',
					<%}%>
					fitColumns:true,
					rownumbers: true, //显示序号
					columns:[[
								{field:'proname',title:'产品名称',width:100,align:'center'},
								{field:'protype',title:'产品类别',width:80,align:'center'},
								{field:'proprice',title:'购买时产品单价',width:100,align:'center'},
								{field:'procapacity',title:'产品规格',width:100,align:'center'},
								{field:'pronum',title:'产品数量',width:80,align:'center'},
								//{field:'proexperience',title:'产品经验值',width:80,align:'center'},
								{field:'totalexperience',title:'剩余产品经验值',width:80,align:'center'},
								{field:'prostatus',title:'产品状态',width:80,align:'center',
									formatter: function(value,row,index){
					  				var status = row.prostatus;
					  				if(status == 1){
					  					return '正常';
					  				}else{
					  					return '停用';
					  				}
					  			}},
								{field:'gxsj',title:'更新时间',width:160,align:'center'}
						    ]]
				})
			}
		</script>
	</body>
</html>